package com.open.capacity.common.web;

/**
 * @Author: [gitgeek]
 * @Date: [2018-08-02 08:50]
 * @Description: [ ]
 * @Version: [1.0.0]
 * @Copy: [com.zzg]
 */
public enum CodeEnum {
    SUCCESS(0000,"success"),
    ERROR(1001,"fail"),

    //tenant-server
    UPDATE_STATUS_ERROR(1002,"管理员更新租户状态失败：没有查询到对应租户"),
    STATUS_SAME_ERROR(1003,"管理员更新租户状态失败：租户状态和更新状态相同"),
    CANNOT_UPDATE_STATUS_ERROR(1004,"管理员更新租户状态失败：不允许的状态更新");

    private Integer code;

    private String msg;

    CodeEnum(Integer code,String msg){
        this.code = code;
        this.msg = msg;
    }
    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
